package com.bao.student.entity;

public class Student {
    /**
     * 属性
     */
    private String sid;
    private String name;
    private int age;
    private String birthday;

    /**
     * 无参构造
     */
    public Student() {
    }

    /**
     * 有参构造
     * @param sid 学号
     * @param name 姓名
     * @param age 年龄
     * @param birthday 生日（yyyy-MM-dd）
     */
    public Student(String sid, String name, int age, String birthday) {
        this.sid = sid;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "\t" +
                "学号：'" + sid + '\'' +
                ", 姓名：'" + name + '\'' +
                ", 年龄：" + age +
                ", 生日:'" + birthday + '\'' ;
    }
}
